]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layoutManager: Treat screen_sized OR windows as fullscreen
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 26 Sep 2011 18:33:59 +0000 (20:33 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Thu, 29 Sep 2011 19:38:05 +0000 (21:38 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=660166

js/ui/layout.js

index f21fcca30f2c725e7126b274e8e0e432cf54bc52..a50c9f2220cb3d686ba71694e78b13563011b9c9 100644 (file)
@@ -825,6 +825,13 @@ Chrome.prototype = {
                     monitor.inFullscreen = true;
             }
             if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
+                // Check whether the window is screen sized
+                if (window.x == 0 && window.y == 0 &&
+                    window.width == global.screen_width &&
+                    window.height == global.screen_height)
+                    monitor.inFullscreen = true;
+
+                // Or whether it is monitor sized
                 let monitor = this._findMonitorForWindow(window);
                 if (monitor &&
                     window.x <= monitor.x &&